package library.and.xps.com.step.m.model;

import java.util.List;

/**
 * Created by XPS on 2017/5/6.
 */

public class CreateTeam {

    /**
     * status : true
     * code : 0
     * error : null
     * obj : {"teamid":3,"tname":"1","enterprise":"1","enterpriseid":3,"type":1,"address":"1","description":"1","creater":1,"createnickname":"是啊是","createtime":1494039824491}
     * list : [{"departmentid":3,"dname":"默认部门","teamid":3,"parentid":0,"creater":0}]
     */

    private boolean status;
    private int code;
    private Object error;
    private ObjBean obj;
    private List<ListBean> list;

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getError() {
        return error;
    }

    public void setError(Object error) {
        this.error = error;
    }

    public ObjBean getObj() {
        return obj;
    }

    public void setObj(ObjBean obj) {
        this.obj = obj;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ObjBean {
        /**
         * teamid : 3
         * tname : 1
         * enterprise : 1
         * enterpriseid : 3
         * type : 1
         * address : 1
         * description : 1
         * creater : 1
         * createnickname : 是啊是
         * createtime : 1494039824491
         */

        private int teamId;
        private String tname;
        private String enterprise;
        private int enterpriseId;
        private int type;
        private String address;
        private String description;
        private int creater;
        private String createNickname;
        private long createtime;

        public int getTeamId() {
            return teamId;
        }

        public void setTeamId(int teamId) {
            this.teamId = teamId;
        }

        public String getTname() {
            return tname;
        }

        public void setTname(String tname) {
            this.tname = tname;
        }

        public String getEnterprise() {
            return enterprise;
        }

        public void setEnterprise(String enterprise) {
            this.enterprise = enterprise;
        }

        public int getEnterpriseId() {
            return enterpriseId;
        }

        public void setEnterpriseId(int enterpriseId) {
            this.enterpriseId = enterpriseId;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public int getCreater() {
            return creater;
        }

        public void setCreater(int creater) {
            this.creater = creater;
        }

        public String getCreateNickname() {
            return createNickname;
        }

        public void setCreateNickname(String createNickname) {
            this.createNickname = createNickname;
        }

        public long getCreatetime() {
            return createtime;
        }

        public void setCreatetime(long createtime) {
            this.createtime = createtime;
        }
    }

    public static class ListBean {
        /**
         * departmentid : 3
         * dname : 默认部门
         * teamid : 3
         * parentid : 0
         * creater : 0
         */

        private int departmentid;
        private String dname;
        private int teamid;
        private int parentid;
        private int creater;

        public int getDepartmentid() {
            return departmentid;
        }

        public void setDepartmentid(int departmentid) {
            this.departmentid = departmentid;
        }

        public String getDName() {
            return dname;
        }

        public void setDName(String dName) {
            this.dname = dName;
        }

        public int getTeamid() {
            return teamid;
        }

        public void setTeamid(int teamid) {
            this.teamid = teamid;
        }

        public int getParentid() {
            return parentid;
        }

        public void setParentid(int parentid) {
            this.parentid = parentid;
        }

        public int getCreater() {
            return creater;
        }

        public void setCreater(int creater) {
            this.creater = creater;
        }
    }
}
